Repetier-Firmware  1.0.0
SerialGCodeSource Class Reference

#include <gcode.h>

Inheritance diagram for SerialGCodeSource:
GCodeSource

Public Member Functions

 SerialGCodeSource (Stream *p)
 
virtual bool isOpen ()
 
virtual bool supportsWrite ()
 true if write is a non dummy function More...
 
virtual bool closeOnError ()
 
virtual bool dataAvailable ()
 
virtual int readByte ()
 
virtual void writeByte (uint8_t byte)
 
virtual void close ()
 
- Public Member Functions inherited from GCodeSource
 GCodeSource ()
 
virtual ~GCodeSource ()
 

Private Attributes

Stream * stream
 

Additional Inherited Members

- Static Public Member Functions inherited from GCodeSource
static void registerSource (GCodeSource *newSource)
 
static void removeSource (GCodeSource *delSource)
 
static void rotateSource ()
 Move active to next source. More...
 
static void writeToAll (uint8_t byte)
 Write to all listening sources. More...
 
static void printAllFLN (FSTRINGPARAM(text))
 
static void printAllFLN (FSTRINGPARAM(text), int32_t v)
 
- Public Attributes inherited from GCodeSource
uint32_t lastLineNumber
 
uint8_t wasLastCommandReceivedAsBinary
 Was the last successful command in binary mode? More...
 
millis_t timeOfLastDataPacket
 
int8_t waitingForResend
 Waiting for line to be resend. -1 = no wait. More...
 
- Static Public Attributes inherited from GCodeSource
static GCodeSource * activeSource = &serial0Source
 

Constructor & Destructor Documentation

◆ SerialGCodeSource()

SerialGCodeSource::SerialGCodeSource ( Stream *  p)

Member Function Documentation

◆ close()

void SerialGCodeSource::close ( )
virtual

Implements GCodeSource.

◆ closeOnError()

bool SerialGCodeSource::closeOnError ( )
virtual

Implements GCodeSource.

◆ dataAvailable()

bool SerialGCodeSource::dataAvailable ( )
virtual

Implements GCodeSource.

◆ isOpen()

bool SerialGCodeSource::isOpen ( )
virtual

Implements GCodeSource.

◆ readByte()

int SerialGCodeSource::readByte ( )
virtual

Implements GCodeSource.

◆ supportsWrite()

bool SerialGCodeSource::supportsWrite ( )
virtual

true if write is a non dummy function

< true if write is a non dummy function

Implements GCodeSource.

◆ writeByte()

void SerialGCodeSource::writeByte ( uint8_t  byte)
virtual

Implements GCodeSource.

Member Data Documentation

◆ stream

Stream* SerialGCodeSource::stream
private

The documentation for this class was generated from the following files: